package com.lening.iot.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseController;
import com.lening.iot.dto.AccontrolDTO;
import com.lening.iot.dto.IndataDTO;
import com.lening.iot.po.IndataPO;
import com.lening.iot.service.IndataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.client.WebClient;

import java.util.List;

/**
 * @ToDo:
 * @Author：李忠达
 * @date: 2024/6/4 12:00
 */
@RestController
@RequestMapping("/indatas")
public class IndataController extends BaseController<IndataPO, IndataDTO, IndataService> {
    @Autowired(required = false)
    private WebClient webClient;

    @Autowired
    private IndataService indataService;
    @GetMapping("/getAllInd")
    public Page<IndataDTO> getAllInd(Page<IndataDTO> indataDTOPage){
        Page<IndataDTO> indList = indataService.getAllInd(indataDTOPage);
        return indList;
    }

//    @Override
//    public Page<?> page(IndataDTO indataDTO) {
//        return indataService.getAllInd(indataDTO);
//    }

}
